var root=ui("$");
var do_Label_proportion = ui("do_Label_proportion");
var openHelper = require("helper/open");
root.setMapping({
	"do_Label_level.text":"myLevel.level",
	"do_Label_nick.text" : "myLevel.nick",
	"do_Label_honorValue.text" : "myLevel.honorStr",
	"do_Label_honorValue.tag" : "myLevel.honorValue",
	"do_Label_proportion.tag" : "myLevel.proportion",
	"do_Label_nowLevel.text" : "myLevel.level",
	"do_Label_nextLevel.text" : "myLevel.nextLevel",
	"do_Label_distance.text" : "myLevel.distance",
	"imgvb.source" : "myLevel.imgvb",
	"imgvf.source" : "myLevel.imgvf",
	"imgvl.source" : "myLevel.imgvl"
});
root.on("dataRefreshed", function(){
	var proportion = parseFloat(do_Label_proportion.tag);
	var width = parseInt(320*proportion);
	do_Label_proportion.width = width;
	do_Label_proportion.redraw();
});
//升级攻略
ui("do_ALayout_9").on("touch", "", 300,function(data) {
	openHelper.open("source://view/honor/upgrade/index.ui");
});
//荣誉值记录
ui("do_ALayout_7").on("touch", "", 300,function(data) {
	openHelper.open("source://view/honor/result/list.ui");
});